From: Robert Lipe Date: Mon, 16 Nov 2015 20:48:47 +0000 (-0600) Subject: Add Edge 205 to Horrible Garmin Hack per Ian Dent. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~10^2~14 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f773daff502cb03102cd432fe60caddd64d71e89;p=gpsbabel.git Add Edge 205 to Horrible Garmin Hack per Ian Dent. --- diff --git a/jeeps/gpsusbread.cc b/jeeps/gpsusbread.cc index 233f08587..01f2cdc36 100644 --- a/jeeps/gpsusbread.cc +++ b/jeeps/gpsusbread.cc @@ -73,8 +73,12 @@ do_over: * valid packets. Note: We can't detect corrupted packets with an ID * or length that's a multiple of 256, but such corrupted packets * haven't been observed so far. + * 484 = Forerunner 305 + * 450 = Forerunner 205, confirmed with Ian Dent on 2015/11/16. + * Edge 205 and 305 are probably similarly affected, but we don't know + * the device ID. */ - if (gps_save_id == 484 + if ((gps_save_id == 484 || gps_save_id == 450) && pkt.gusb_pkt.type == 0 && pkt.gusb_pkt.reserved1 == 0 && pkt.gusb_pkt.reserved2 == 0 && pkt.gusb_pkt.reserved3 != 0 && pkt.gusb_pkt.pkt_id[0] <= 4 && pkt.gusb_pkt.pkt_id[1] == 0